﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace showcolat
{
   public class Serie
    {
        public int NumSerie{get;set;}
        public string NomSerie;
        public int Saisons;
        public string Resume;
        //private float Note;
        public string Note;
        public string Diffusion;
        public string chaine;
        public string heure_diff;
        public int duree;
        public string genre; 

        public Serie()
        {
            this.NumSerie = 0;
            this.NomSerie = "";
            this.Saisons = 0;
            this.Resume = "";
            //this.Note = 0f;
            this.Note = "0";
            this.Diffusion = "0";
            this.genre = "";
        }

        public Serie(int NumSerie = 0, string NomSerie = "", int Saisons = 0, string Resume = "", string Note = "0", string Diffusion = "", string chaine ="", string heure_diff ="", int duree=0, string genre="" /*float Note = 0f*/) //constructeurs
        {
            this.NumSerie = NumSerie;
            this.NomSerie = NomSerie;
            this.Saisons = Saisons;
            this.Resume = Resume;
            this.Note = Note;
            this.Diffusion = Diffusion;
            this.chaine = chaine;
            this.heure_diff = heure_diff;
            this.duree = duree;
            this.genre = genre;
        }

        public override string ToString()
        {
            return this.NomSerie + "[" + this.NumSerie + "] : " + this.Resume + "\nNote : " + this.Note ;
        }


    }
}